package org.hive.testserver.domain.model;

import java.util.Map;
import java.util.SortedMap;

/**
 * Request of a Slave to perform some work for the test server.
 */
public interface Work extends Entity {
	public SortedMap<String,String> runContext();
	public void finished(Slave slave, String result, Map<String,String> resultContext);
	public String result();
	public String scheduledReason();
	public Map<String,String> resultContext();
	public boolean isFinished();
	public Slave assignedSlave();
	public long started();
	public long duration();
	public String getTestName();
}
